using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using Core;

namespace InformationSchema
{
    public partial class Form1 : Form
    {
        private BindingSource binding_source = new BindingSource();
        private BindingList<Column> binding_list = new BindingList<Column>();

        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            List<Column> items = Column.FindAll();
            gridView.AutoGenerateColumns = true;

            foreach (Column item in items)
            {
                binding_list.Add(item);
                
            }

            binding_source.DataSource = binding_list;
            gridView.DataSource = binding_source;

        }
    }
}